package Test;

import java.util.*;

import shiyan3.*;

public class Test {
	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		Subject subject = new Subject();
		system system;
		shiyan3.system.main(args);
		int ch = input.nextInt();
		if (ch == 1) {
			// teacher
			subject.setsu();
			// System.out.println(Arrays.toString(subject.getsu()));
			System.out.println("请输入开课序号（1~9）");
			subject.Kaike(); // 开课
			Teacher teacher1 = new Teacher("teacher a",1861171, "男");
			System.out.println("姓名：" + teacher1.getName() + "   " + "编号："
					+ teacher1.getBianhao() + "   " + "性别：" + teacher1.getXingbie());
			System.out.println(Arrays.toString(subject.getKaike()));// 输出开课课表

			System.out.println("学生选课");
			// student1
			System.out.println("输入选课课序号（1~4）");
			subject.xuan(); // 选课
			System.out.println(Arrays.toString(subject.getxuan())); 
			System.out.println("学生退课");
			System.out.println("输入退课课序号（1~2）");
			subject.tui(); // 退课
			System.out.println(Arrays.toString(subject.gettui()));
			Student student1 = new Student("Sam", 2020310846, "男", 19);
			System.out.println(
					"姓名：" + student1.getName() + "   " + "年龄：" + student1.getAge() + "   " + "编号：" + student1.getBianhao()
							+ "   " + "性别：" + student1.getXingbie() + "   " + "授课老师：" + teacher1.getName());
			 
		}
		if (ch == 0) {
			System.out.println("已退出");
			System.exit(0);
		}

	}
}